package com.netease.spring.ch1;

public class GreetingServiceImpl implements GreetingService {
    private String greeting;

    public GreetingServiceImpl() {
        super();
    }

    public GreetingServiceImpl(String greeting) {
        super();
        this.greeting = greeting;
    }

    public String getGreeting() {
        return greeting;
    }

    public void setGreeting(String greeting) {
        this.greeting = greeting;
    }

    public void sayGreeting() {
        System.out.println("hello " + greeting);
    }

}
